<?php /* Smarty version 2.6.18, created on 2017-09-24 19:31:17
         compiled from auto.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style>
td, th {
	height:30px;
	line-height:30px;
}
select {
	width:80px;
}
tr:hover{background:#DEEFD8}
label.page{font-weight:none;border:1px solid #699;margin-right:5px;padding:3px;cursor:pointer;color:#000}
.xbody1{width:1260px;}

.wd120{width:120px;}
</style>
</head><body>
<script id=myjs language="javascript">var js=1;var sss='auto';</script>
<div class="xbody1">
 <table class="tinfo wd100">
  <Tr>
   <td colspan="3"><!-- <label class="page" v='warn'>警示金额设置</label>

   <label class="page click" v='auto'>自动降倍设置</label>-->
   <input type="button" class="btn1 btnf send" value="提交修改" /></TD>
     <TD colspan="13">  
<input type="button" style="width:200px;" gid='<?php echo $this->_tpl_vars['gid']; ?>
' class="btn1 btnf yiwotongbu" value="以我同步<?php echo $this->_tpl_vars['flname']; ?>
" />

</TD>
  </Tr>

  <TR>
  <th class="wd120"><input type="checkbox"  class="all" />全选</th>
   <th  class="wd120"> <select class="game" style="width:120px;">
     
     
     
 <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['game']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
  
     
     
     <option value="<?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gid']; ?>
" <?php if ($this->_tpl_vars['game'][$this->_sections['i']['index']]['gid'] == $this->_tpl_vars['gid']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['game'][$this->_sections['i']['index']]['gname']; ?>
</option>
     
     
     
  <?php endfor; endif; ?>
 
    
    
    </select>
   </th>
   <th class="wd120">类别</th>
   <th>开关</th>
   <th>预降</th>
   <th>计算方法</th>
   <th>开始下调金额/下调赔率</th>
   <th>金额变动值/下调赔率</th>
   <th>开始下调期数/下调赔率[限快开]</th>
   <th>停止下注金额</th>
   <th>最低赔率</th>
  </TR>
  <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['auto']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
  <tr f='<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['ftype']; ?>
' class="nr">
   <td><input type="checkbox"   /><input type="button" class="btn1 btnf pantb" value="同步选中" /></td>
   <th ><?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['gname']; ?>
</th>
   <td ><?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['name']; ?>
</td>
   <td><input type="checkbox" class="ifok" <?php if ($this->_tpl_vars['auto'][$this->_sections['i']['index']]['ifok'] == 1): ?>checked<?php endif; ?> /></td>
   <td><input type="checkbox" class="yj" <?php if ($this->_tpl_vars['auto'][$this->_sections['i']['index']]['yj'] == 1): ?>checked<?php endif; ?> /></td>
   <td><select class='ifzc'>
     <option <?php if ($this->_tpl_vars['auto'][$this->_sections['i']['index']]['ifzc'] == 0): ?>selected<?php endif; ?> value="0">全部</option>
     <option <?php if ($this->_tpl_vars['auto'][$this->_sections['i']['index']]['ifzc'] == 1): ?>selected<?php endif; ?>  value="1">占成</option>
    </select></td>
   <td><input type="text" class="startje"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['startje']; ?>
" />
    /
    <input type="text" class="startpeilv"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['startpeilv']; ?>
" /></td>
   <td><input type="text" class="addje"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['addje']; ?>
" />
    /
    <input type="text" class="attpeilv"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['attpeilv']; ?>
" /></td>
   <td><input type="text" class="qsnum"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['qsnum']; ?>
" />
    /
    <input type="text" class="qspeilv"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['qspeilv']; ?>
" /></td>
   <td><input type="text" class="stopje"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['stopje']; ?>
" /></td>
   <td><input type="text" class="lowpeilv"  value="<?php echo $this->_tpl_vars['auto'][$this->_sections['i']['index']]['lowpeilv']; ?>
" /></td>
  </tr>
  <?php endfor; endif; ?>
 </table>
</div>
<div id='test'></div>
</body>
</html>